package com.lichuandi.service.impl;

import com.lichuandi.infer.PaymentService;

// 实现接口
public class CreditCardPaymentService implements PaymentService {
    @Override
    public void pay(double amount) {
        System.out.println("Paying " + amount + " via Credit Card");
    }

    @Override
    public String getProviderName() {
        return "Credit Card Payment Provider";
    }
}